import { PartialType } from '@nestjs/swagger';
import { CreateGenDto } from './create-gen.dto';
import { GenTableColumn } from '../entities/gen-column.entity';

export class UpdateGenDto extends PartialType(CreateGenDto) {
  id: number;

  columns: GenTableColumn[];

  baseForm: {
    table_name: string,
    table_comment: string,
    class_name?: string,
    function_author: string,
    remark?: string,
  };

  genForm: {
    tpl_category: string,
    module_name: string,
    business_name: string,
    function_name: string,
    gen_type: string,
    gen_path: string,
    is_extends_baseEntity:string,
    parent_menu_id?: string,
  };
}
